std::isinf

From Cppreference

Jump to: navigation, search
Defined in header <cmath>

int isinf( float arg );
(C++0x feature)
int isinf( double arg );
(C++0x feature)
int isinf( long double arg );
(C++0x feature)

Determines if the given floating point number arg is positive or negative infinity.

Parameters

arg - floating point value

Return value

nonzero value if arg is infinite, 0 otherwise

See also

fpclassify (C++0x)
categorizes the given floating point value
(function)
isfinite (C++0x)
checks if the given number has finite value
(function)
isnan (C++0x)
checks if the given number is NaN
(function)
isnormal (C++0x)
checks if the given number is normal
(function)
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox
In other languages